
import ajax from '../utils/axios';

export async function overviewInventoryAlarm(num) {
  const res = await ajax.get(`/overview/inventory_alarm?num=${num}`);
  return res.data.data;
}

// 查询首页计数信息
export async function overviewCount() {
  const res = await ajax.get(`/overview/count`);
  return res.data.data;
}
// 查询首页今日销售详情
export async function sellInfoToday() {
  const res = await ajax.get(`/overview/sell_info_today`);
  return res.data.data;
}

// 查询首页本周销售额
export async function sellInfoWeek() {
  const res = await ajax.get(`/overview/sell_info_week`);
  return res.data.data;
}

export async function sellInfoMonth() {
  const res = await ajax.get(`/overview/sell_info_month`,{mock:1});
  return res.data.data;
}

export async function proportion(goods_type) {
  const res = await ajax.get(`/overview/proportion?goods_type${goods_type}`);
  return res.data.data;
}




